﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.QixingManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2023-12-16 21:36
    /// 描 述：商品型号描述实体类
    /// </summary>
    [Table("goods_models")]
    public class ModelsEntity : BaseEntity
    {
        /// <summary>
        /// 分类ID
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? categoryid { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        public string category_name { get; set; }
        /// <summary>
        /// 型号名称
        /// </summary>
        /// <returns></returns>
        public string model_name { get; set; }
        ///// <summary>
        ///// 出租金额
        ///// </summary>
        ///// <returns></returns>
        //public float? rule { get; set; }
        ///// <summary>
        ///// 1天2小时
        ///// </summary>
        ///// <returns></returns>
        //public string unit { get; set; }
        /// <summary>
        /// 租户id
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? tenant_id { get; set; }

        [JsonConverter(typeof(StringJsonConverter))]
        public long? brandid { get; set; }

        public string brand_name { get; set; }
    }

    [Table("goods_rentcategory_models")]
    public class GoodsRentCategoryModels : BaseEntity
    {
        /// <summary>
        /// 分类id(弃用)
        /// </summary>
        [JsonConverter(typeof(StringJsonConverter))]
        public long rentCategoryid { get; set; }

        /// <summary>
        /// 租车型号id
        /// </summary>
        [JsonConverter(typeof(StringJsonConverter))]
        public long rentModelsid { get; set; }

        /// <summary>
        /// 商品id
        /// </summary>
        [JsonConverter(typeof(StringJsonConverter))]
        public long goods_id { get; set; }

        /// <summary>
        /// 品牌ID
        /// </summary>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? brandid { get; set; }
    }
}
